home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / programm.ing / ams__l~1.zoo / man / fnameext.man < prev    next >
Encoding:
Text File  |  1993-09-05  |  1.6 KB  |  55 lines

  1.                         ATARI MACHINE SPECIFIC LIBRARY
  2.  
  3.  
  4.  
  5. NAME
  6.      fnameext - filename manipulations
  7.  
  8. SYNOPSIS
  9.      #include <fnameext.h>
  10.  
  11.      char* basename(char* dest,const char*)
  12.      char* directory(char* dest,const char*)
  13.      char* extension(char* dest,const char*)
  14.      char* noextension(char* dest,const char*)
  15.  
  16. DESCRIPTION
  17.      It is common on Atari computers (and most others), to use the
  18.      "filename extension" to help identify files.  This module provides
  19.      some basic operations on filenames.
  20.  
  21. FUNCTIONS
  22.      char* basename(char* dest,const char* source)
  23.        Find filename only of string - strips away the directory.
  24.        Returns pointer to basename in source.
  25.  
  26.      char* directory(char* dest,const char* source)
  27.        Find directory only of string - strips away the filename.
  28.        Returns dest.
  29.  
  30.      char* extension(char* dest,const char* source)
  31.        Find the extension of a filespec.  If none, returns "".
  32.        Returns pointer to ext in source.
  33.  
  34.      char* noextension(char* dest,const char* source)
  35.        Remove the extension from a filespec.  If none, returns source.
  36.        Returns dest.
  37.  
  38. SEE ALSO
  39.      Screen (uses filename extension for file formats)
  40.  
  41. AUTHOR
  42.      Warwick Allison, 1992.
  43.      warwick@cs.uq.oz.au
  44.  
  45. COPYING
  46.      This functionality is part of the Atari Machine Specific Library,
  47.      and is Copyright 1992 by Warwick W. Allison.
  48.  
  49.      The Atari Machine Specific Library is free and protected under the
  50.      GNU Library General Public License.
  51.  
  52.      You are free to copy and modify these sources, provided you acknowledge
  53.      the origin by retaining this notice, and adhere to the conditions
  54.      described in the GNU LGPL.
  55.